pinctrl: a3700: Fix the issue that gpio controller is registered with wrong node id
authorKen Ma <[email protected]>
Thu, 22 Jun 2017 09:13:36 +0000 (17:13 +0800)
committerStefan Roese <[email protected]>
Fri, 23 Jun 2017 05:09:40 +0000 (07:09 +0200)
commitae118b6855a7d003a7d024129e686c8a4a400141
treec226058a5138c1007b12dec856a06adcd77cba5a
parentb5a6c94a0380071600dc5b8be1853164f62af146
pinctrl: a3700: Fix the issue that gpio controller is registered with wrong node id

In armada_37xx_gpiochip_register, the return value of fdtdec_get_bool
should be true when gpio-controller is found; current codes makes a
wrong inverse return value judgement, this patch fixes it.

Signed-off-by: Ken Ma <[email protected]>
Cc: Stefan Roese <[email protected]>
Cc: Kostya Porotchkin <[email protected]>
Cc: Gregory CLEMENT <[email protected]>
Cc: Nadav Haklai <[email protected]>
Cc: Wilson Ding <[email protected]>
Reviewed-by: Stefan Roese <[email protected]>
Signed-off-by: Stefan Roese <[email protected]>
drivers/pinctrl/mvebu/pinctrl-armada-37xx.c